package com.zbf.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/17  17:14
 * 描述:
 */
@RestController
public class TestRibbon1Controller {

    @Autowired
    private RestTemplate restTemplate;


    @RequestMapping("test000")
    public String testRibbon(){

        Map<String,Object> map=new HashMap<String,Object>();
        map.put("zhangsan","8888888888888888888888");

        String object = restTemplate.postForObject("http://TEST-EUREKA-C1/test02", map, String.class);

        return object;
    }
}
